package com.sinochem.yunlian.ship.base.biz;

import com.sinochem.yunlian.ship.api.vo.uc.UcUserInfo;
import com.sinochem.yunlian.ship.api.vo.uc.UserInfo;
import com.sinochem.yunlian.ship.base.feign.IUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: zzd
 * @Dscription: trace所有对外RPC服务调用
 * @Date: Create in 2018/1/20 15:25
 **/
@Service
public class RpcCommonBiz {
    private static Logger logger = LoggerFactory.getLogger(RpcCommonBiz.class);

    @Autowired
    private IUserService ucService;

    public UcUserInfo getSubject(String userId){
        UserInfo user = new UserInfo();
        user.setUserId(Long.valueOf(userId));
        return ucService.getUserInfoByCondition(user);
    }



}
